package com.nervenets.web.controller.user;

import com.nervenets.web.enumeration.Gender;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class WeixinLoginParams implements Serializable {
    @ApiModelProperty(value = "微信返回的openId", required = true)
    @NotNull(message = "微信返回的openId不能为空")
    private String openId;
    @ApiModelProperty(value = "微信返回的unionId")
    private String unionId;
    @ApiModelProperty(value = "微信返回的nickname", required = true)
    @NotNull(message = "微信返回的nickname不能为空")
    private String nickname;
    @ApiModelProperty(value = "微信返回的headImgUrl", required = true)
    @NotNull(message = "微信返回的headImgUrl不能为空")
    private String headImgUrl;
    @ApiModelProperty(value = "微信返回的性别", required = true)
    private Gender gender;
}
